package sprint.doing.network;
/*
Project name     : Sprint
Project Descript : ���� ������ 
Project Manager  : Jimmy Kim
Company          : Blue
Class Create Day : 2014/02/12
*/

import java.net.Socket;
public class SocketOpen {
	Socket socket ;
	
	public SocketOpen() {
		
	}
	
	public Socket getSocket(){
		return this.socket;
	}
	
	public String socketStart(){
		String result;
		try{
			 socket = new Socket("14.49.43.45",3123);
			 //socket = new Socket("localhost",3123);
			 result = "true";
			 System.out.println("서버와 연결되었습니다");
			}catch(Exception e){
				result ="false";
				System.out.println("port 연결에러 발생");
			}
		return result;
	}
}
